#include "myobject.h"

#include <QDebug>
#include <QThread>

MyObject::MyObject(QString name, QObject *parent)
    : name(name), QObject(parent)
{

}

MyObject::~MyObject()
{
    qDebug() << name << " entering destructor.";
    if (parent()) {
        qDebug() << name << " is being removed from parent's children list.";
    }
    // qDebug() << name << " destroyed.";
}
